<template>
  <div>
    <el-dialog title="免费抽奖明细" :visible.sync="show.isshow">
      <el-table :data="tableList" border >
        <el-table-column
          property="createDate"
          label="时间"
          width="510"
          align="center"
        ></el-table-column>
        <el-table-column
          property="lotteryType"
          label="奖品记录"
          width="505"
          align="center"
        >
           <template slot-scope="scope">
               <div v-if="scope.row.prize.type == 'PHYSICALS_PRIZE'">
                   {{scope.row.prize.physicalsPrizeName}}
               </div>
                <div v-if="scope.row.prize.type == 'VIRTUAL_PRIZE'">
                   {{scope.row.prize.prizeName}}+{{scope.row.prize.num}}
               </div>
           </template>
        </el-table-column>
      </el-table>
      <div style="display:flex;justify-content:center;padding:20px 0">
         <el-button type="primary" @click="show.isshow = false" class="hands">
         关闭
      </el-button>
      </div>
      
    </el-dialog>
  </div>
</template>

<script>
export default {
  props:['tableList','show'],
  data() {
    return {
     
    }
  },
  created() {},
  mounted() {
  
  },
  methods: {
      
  }
}
</script>

<style lang="less" scoped>
  .hands{
    cursor:pointer
  }
</style>
